
package com.welsy.stats.control
{
	import com.adobe.cairngorm.control.FrontController;
	import com.welsy.usermgt.command.*	
	import com.welsy.usermgt.event.*;
	import com.welsy.stats.event.GetIterUsersResultsEvent;
	import com.welsy.stats.event.GetAllIterClassroomEvent;
	import com.welsy.stats.command.GetIterUsersResultsCommand;
	import com.welsy.stats.command.GetAllIterClassroomCommand;
	import com.welsy.stats.command.GetClassroomTrackingStatsCommand;
	import com.welsy.stats.event.GetClassroomTrackingStatsEvent;
	import com.welsy.stats.event.GetClassroomResultsStatsEvent;
	import com.welsy.stats.command.GetClassroomResultsStatsCommand;
	import com.welsy.stats.event.GetClassroomCourseStatsEvent;
	import com.welsy.stats.command.GetClassroomCourseStatsCommand;
	import com.welsy.stats.event.GetClassroomTestStatsEvent;
	import com.welsy.stats.command.GetClassroomTestStatsCommand;
	import com.welsy.stats.event.GetPublishItersEvent;
	import com.welsy.stats.command.GetPublishItersCommand;
	import com.welsy.stats.event.GetPublishCoursesEvent;
	import com.welsy.stats.command.GetPublishCoursesCommand;
	import com.welsy.stats.event.GetTestFromCourseEvent;
	import com.welsy.stats.command.GetTestFromCourseCommand;
	import com.welsy.stats.event.GetTestStatsEvent;
	import com.welsy.stats.command.GetTestStatsCommand;
	import com.welsy.stats.event.GetCourseClassroomsStatsEvent;
	import com.welsy.stats.command.GetCourseClassroomsStatsCommand;
		
	public class MainController extends FrontController
	{
		public function MainController()
		{
			initialiseCommands();
		}
		
		public function initialiseCommands() : void
		{
			addCommand(GetAllIterClassroomEvent.EVENT_GETALLITERCLASSROOM, GetAllIterClassroomCommand);
			addCommand(GetIterUsersResultsEvent.EVENT_GETITERUSERSRESULTS, GetIterUsersResultsCommand);
			addCommand(GetClassroomTrackingStatsEvent.EVENT_GETCLASSROOMTRACKINGSTATSEVENT, GetClassroomTrackingStatsCommand);
			addCommand(GetClassroomResultsStatsEvent.EVENT_GETCLASSROOMRESULTSSTATSEVENT, GetClassroomResultsStatsCommand);
			addCommand(GetClassroomCourseStatsEvent.EVENT_GETCLASSROOMCOURSESTATS, GetClassroomCourseStatsCommand);
			addCommand(GetClassroomTestStatsEvent.EVENT_GETCLASSROOMTESTSTATS, GetClassroomTestStatsCommand);
			addCommand(GetPublishItersEvent.EVENT_GETPUBLISHITERS, GetPublishItersCommand);
			addCommand(GetPublishCoursesEvent.EVENT_GETPUBLISHCOURSES, GetPublishCoursesCommand);
			addCommand(GetTestFromCourseEvent.EVENT_GETTESTFROMCOURSE, GetTestFromCourseCommand);
			addCommand(GetTestStatsEvent.EVENT_GETTESTSTATS, GetTestStatsCommand);
			addCommand(GetCourseClassroomsStatsEvent.EVENT_GETCOURSESCLASSROOMSSTATS, GetCourseClassroomsStatsCommand);
		}	
	}
}